package cn.mapper;

import cn.dto.Query;
import cn.entity.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MemberMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Member record);

    int insertSelective(Member record);

    Member selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Member record);

    int updateByPrimaryKey(Member record);

    List<Member> selectMemberListByMenuId(@Param("menuId") Integer menuId, @Param("query") Query query);

    List<Member> selectMemberList(Query query);

    int totalNum();
}